package com.lili.operate.service.serviceImpl;

import com.lili.model.operate.Message;
import com.lili.operate.mapper.MessageMapper;
import com.lili.operate.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;

    /**
     * 发送短信
     * @param message
     * @return
     */
    @Override
    public int saveMessage(Message message) {
        return messageMapper.insert(message);
    }
}
